import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
	{
		path: '/teamIndex',
		name: 'teamIndex',
		meta: {
			title: '车队'
		},
		component: () => import('../views/team-index/team-index.vue')
	},
	{
		path: '/messageList',
		name: 'messageList',
		meta: {
			title: '消息'
		},
		component: () => import('../views/message-list/index.vue')
	},
	{
		path: '/dailyIndex',
		name: 'dailyIndex',
		meta: {
			title: '报表'
		},
		component: () => import('../views/daily-index/daily-index.vue')
	},
    {
        path: '/faultDistribution',
        name: 'faultDistribution',
        meta: {
            title: '故障分布'
        },
        component: () => import('../views/fault-distribution/index.vue')
    },
	{
		path: '/autoList',
		name: 'autoList',
		meta: {
			title: '车辆列表'
		},
		component: () => import('../views/auto-list/auto-list.vue')
	},
	{
		path: '/autoDetail',
		name: 'autoDetail',
		meta: {
			title: '车辆详情'
		},
		component: () => import('../views/auto-detail/auto-detail.vue')
	},
	{
		path: '/driverList',
		name: 'driverList',
		meta: {
			title: '司机列表'
		},
		component: () => import('../views/driver-list/driver-list.vue')
	},
	{
		path: '/driverDetail',
		name: 'driverDetail',
		meta: {
			title: '司机详情'
		},
		component: () => import('../views/driver-detail/driver-detail.vue')
	},
	{
		path: '/fluidFundList',
		name: 'fluidFundList',
		meta: {
			title: '资金流水'
		},
		component: () => import('../views/fluid-fund-list/fluid-fund-list.vue')
	},
	{
		path: '/orderList',
		name: 'orderList',
		meta: {
			title: '订单记录'
		},
		component: () => import('../views/order-list/order-list.vue')
	},
	{
		path: '/feedbackList',
		name: 'feedbackList',
		meta: {
			title: '意见反馈'
		},
		component: () => import('../views/feedback-list/feedback-list.vue')
	},
	{
		path: '/feedbackDetail',
		name: 'feedbackDetail',
		meta: {
			title: '意见反馈详情'
		},
		component: () => import('../views/feedback-detail/feedback-detail.vue')
	},
	{
		path: '/privacy',
		name: 'privacy',
		meta: {
			title: '隐私协议'
		},
		component: () => import('../views/privacy/privacy.vue')
	},
	{
		path: '/instruction',
		name: 'instruction',
		meta: {
			title: '用户须知'
		},
		component: () => import('../views/instruction/instruction.vue')
	},
    {
        path: '/fundList',
        name: 'fundList',
        meta: {
            title: '资金账户'
        },
        component: () => import('../views/fund-list/index.vue')
    },
    {
        path: '/bindCarList',
        name: 'bindCarList',
        meta: {
            title: '绑定车辆'
        },
        component: () => import('../views/bind-car-list/index.vue')
    }
]

const router = new VueRouter({
	mode: 'history',
	base: process.env.BASE_URL, /* 对应vue.config.js种的publicPath.option(应用部署的基本路径) */
	routes
})

export default router
